//
//  BarChartItem.m
//  CoolTennisBall
//
//  Created by 谢伟康 on 15/12/24.
//  Copyright © 2015年 CoolLang. All rights reserved.
//

#import "BarChartItem.h"

@implementation BarChartItem

#pragma mark - Public Method
- (void)analysisItemWithDictionary:(NSDictionary *)dic
{
    self.poseType = [dic[@"Type"] integerValue];
    self.maxSpeed = [@([dic[@"Speed"] integerValue]) stringValue];
    self.strength = [@([dic[@"Force"] integerValue]) stringValue];
    self.arc = [@([dic[@"Radian"] integerValue]) stringValue];
    self.unixTimeStamp = dic[@"Timestamp"];
    self.isHitSweet = ([dic[@"Sweet"] integerValue] == 1);
    self.handType = [dic[@"H"] integerValue];
}

@end
